package com.globopt.global.algorithm.functions;

import com.globopt.global.algorithm.Function;
import com.globopt.global.algorithm.Point;

/**
 * Sample test function.
 * 
 * @author Richard Gasztany 2012.11.25.
 * 
 */
public class F4 extends Function {

	public F4() {
		this.nvars = 1;
	}

	@Override
	public double evaluation(Point p) {
		double x = p.getCoordinate(0);
		return x * x + 2.0 * x;
	}

}
